.class public Lcom/instagram/android/feed/d/j;
.super Ljava/lang/Object;
.source "StarredHidePreferences.java"


# static fields
.field private static a:Lcom/instagram/android/feed/d/j;


# instance fields
.field private b:Landroid/content/SharedPreferences;


# direct methods
.method private constructor <init>()V
    .locals 1

    .prologue
    .line 24
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 25
    const-string v0, "starredHidePreferences"

    invoke-static {v0}, Lcom/instagram/m/b/a/a;->a(Ljava/lang/String;)Landroid/content/SharedPreferences;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/feed/d/j;->b:Landroid/content/SharedPreferences;

    .line 26
    return-void
.end method

.method public static a()Lcom/instagram/android/feed/d/j;
    .locals 1

    .prologue
    .line 18
    sget-object v0, Lcom/instagram/android/feed/d/j;->a:Lcom/instagram/android/feed/d/j;

    if-nez v0, :cond_0

    .line 19
    new-instance v0, Lcom/instagram/android/feed/d/j;

    invoke-direct {v0}, Lcom/instagram/android/feed/d/j;-><init>()V

    sput-object v0, Lcom/instagram/android/feed/d/j;->a:Lcom/instagram/android/feed/d/j;

    .line 21
    :cond_0
    sget-object v0, Lcom/instagram/android/feed/d/j;->a:Lcom/instagram/android/feed/d/j;

    return-object v0
.end method


# virtual methods
.method public a(Lcom/instagram/j/l;Z)V
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 33
    iget-object v0, p0, Lcom/instagram/android/feed/d/j;->b:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-virtual {p1}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1, p2}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 34
    return-void
.end method

.method public a(Lcom/instagram/j/l;)Z
    .locals 3
    .parameter

    .prologue
    .line 29
    iget-object v0, p0, Lcom/instagram/android/feed/d/j;->b:Landroid/content/SharedPreferences;

    invoke-virtual {p1}, Lcom/instagram/j/l;->c()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    return v0
.end method
